magicians = ['alice','david','carolina']
for magician in magicians:
	print(f"{magician.title()},that was a great trick!")
	print(f"I can't wait to see your next trick, {magician.title()}.\n")
	print("Thank you, everyone. That was a great magic show!")

#4-1练习
drinks = ["juice","colo","milk"]
for drink in drinks:
	print(f"{drink.title()},is my favorite drink")
	print(f"my favorite drink is {drink.title()}")

#4-2练习
pets = ['dog','cat','brid']
for pet in pets:
	print(f"{pet.title()} is great pet")
print('Any of these animals would make a great pet!')

#4.3 创建数值表
for value in range(1,6):
	print(value)

numbers = list(range(1,6))
print(numbers)

even_numbers = list(range(2,11,2))
print(even_numbers)

squares = []
for value in range(1,11):
	square = value **2
	squares.append(square)
print(squares)

squares = []
for value in range(1,11):
	squares.append(value**2)
print(squares)

squares = [value**2 for value in range(1,11)]
print(squares)

digits = [1,2,3,4,5,6,7,8,9,0]
print(min(digits))
print(sum(digits))
print(max(digits))

#练习4-3
for num in range(1,21):
	print(num)


